package com.czumi.javawx.web.controller.admin;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.czumi.javawx.dao.entity.SysUser;
import com.czumi.javawx.service.SysUserService;

@Controller
@RequestMapping(value="/admin")
public class SysUserController {
	
	@Autowired
	private SysUserService sysUserService;
	
	
	@RequestMapping(value="/grid",method=RequestMethod.GET)
	@ResponseBody
	public List<SysUser> grid(){
		return sysUserService.getAllUser();
	}
	
}
  
